    <div id="news">
    <?php 
        if(isset($news)){
            echo form_open(base_url().'admin/admin_con/edit_news');

            echo '<table>
                <tr>
                <td>Berita
                </td>
                <td>Cerita
                </td>
                <td>Tutorial
                </td>
                </tr><tr>
                <td><ul>';
            for($i=0;$i<count($news);$i++){
                if($news[$i]['JENIS']=='BERITA'){
                    echo '

                        <li>'
                    .$news[$i]['JUDUL'].' <a href="'.base_url().'admin/admin_con/edit_news/'.$news[$i]['ID_BERITA'].'"><img src="'.base_url().'img/b_edit.png"></a>  <a href="'.base_url().'admin/admin_con/delete_news/'
                    .$news[$i]['ID_BERITA'].'"><img src="'.base_url().'img/b_drop.png"></a></li>
                        ';
                }
            }
            echo '
                </ul></td>';
            echo '<td><ul>';
            for($i=0;$i<count($news);$i++){
                if($news[$i]['JENIS']=='CERITA'){
                    echo '
                        <li>'
                    .$news[$i]['JUDUL'].' <a href="'.base_url().'admin/admin_con/edit_news/'.$news[$i]['ID_BERITA'].'"><img src="'.base_url().'img/b_edit.png"></a>  <a href="'.base_url().'admin/admin_con/delete_news/'
                    .$news[$i]['ID_BERITA'].'"><img src="'.base_url().'img/b_drop.png"></a></li>
                        ';
                }
            }
            echo '</ul></td>';
            echo '<td><ul>';
            for($i=0;$i<count($news);$i++){
                if($news[$i]['JENIS']=='TUTORIAL'){
                    echo '
                        <li>'
                    .$news[$i]['JUDUL'].' <a href="'.base_url().'admin/admin_con/edit_news/'.$news[$i]['ID_BERITA'].'"><img src="'.base_url().'img/b_edit.png"></a>  <a href="'.base_url().'admin/admin_con/delete_news/'
                    .$news[$i]['ID_BERITA'].'"><img src="'.base_url().'img/b_drop.png"></a></li>
                        ';
                }
            }
            echo '</ul></td>';
            echo '
                </tr>
                </table>';
            echo form_submit('submit','Tambah Berita');
            echo form_close();
        }?> 
    </div>
